//
//  ThreeViewController.m
//  5-24
//
//  Created by mac on 16-5-30.
//  Copyright (c) 2016年 ztt. All rights reserved.
//

#import "ThreeViewController.h"

@interface ThreeViewController ()
{
    NSArray *nam;
}
@end

@implementation ThreeViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    nam = @[
            @"椰香粉：半勺，用开水冲泡。",
            @"奶茶：300mL。",
            @"配料：红豆。",
            ];
    
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return nam.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *de = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
    de.textLabel.text = nam[indexPath.row];
    de.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    return de;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
